package com.jasonm.rssminer.dto;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;

public class FeedDTO implements Serializable{

	private static final long serialVersionUID = -2849608032397237003L;
	
	String id; //MD5 ID for uniqueness.
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	String title;
	String description;
	String link;
	Date pubDate;
	
	
	public FeedDTO(String id, String title, String description, String link, Date pubDate) {
		super();
		this.id = id;
		this.title = title;
		this.description = description;
		this.link = link;
		this.pubDate = pubDate;
	}
	
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getPubDate() {
		return pubDate;
	}
	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("pubDate", this.pubDate)
				.append("description", this.description)
				.append("link", this.link).append("title", this.title)
				.toString();
	}
	
	
}
